﻿using DevelopAssistant.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DevelopAssistant.Core.ToolBox
{
    public partial class DataBaseTreeFilter : ICSharpCode.WinFormsUI.Forms.BaseForm //ToolBoxBase
    {
        public string Keywords = string.Empty;

        public DataBaseTreeFilter()
        {
            InitializeComponent();
        }

        public DataBaseTreeFilter(MainForm OwnerForm, string Keywords)
            : this()
        {
            this.XTheme = AppSettings.WindowTheme;
            this.textBox1.Text = Keywords;
        } 

        private void btnApplyOk_Click(object sender, EventArgs e)
        {
            this.Keywords = this.textBox1.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancle_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
